import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/common.css'
import echarts from 'echarts'

import Axios from 'axios'
import api from './http/api/api'
import http from './http/http'
// axios 拦截器
import './http/axios'

// 对后端接口 进行全局注册
Vue.prototype.$api = api
// 对请求方式 进行全局注册
Vue.prototype.$http = http
Vue.prototype.$http = Axios

// 引入echarts
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
